import service from '@/utils/request';

export default null;

export const getDateList = (params?: any) => {
  return service.request({
    url: '/patient/SysRoutineInspectionController/queryRoutineInspectionDate',
    method: 'get',
    params,
  });
};
// 获取血液检查列表
export const getDataList = (params?: any) => {
  return service.request({
    url: '/patient/SysRoutineInspectionController/selectRoutineInspection',
    method: 'get',
    params,
  });
};
// 新增血液检查
export const addData = (data?: any) => {
  return service.request({
    url: '/patient/SysRoutineInspectionController/insertRoutineInspection',
    method: 'post',
    data,
  });
};
// 删除血液检查
export const delById = (id: any) => {
  return service.request({
    url: `/patient/SysRoutineInspectionController/deleteRoutineInspectionById`,
    method: 'post',
    params: {
      id,
    },
  });
};
// 批量删除血液检查
export const delByIds = (ids: any) => {
  return service.request({
    url: `patient/SysRoutineInspectionController/deleteRoutineInspectionByIds`,
    method: 'post',
    params: {
      ids,
    },
  });
};
//   修改血液检查
export const editData = (data: any) => {
  return service.request({
    url: `/patient/SysRoutineInspectionController/updatePatientDiet`,
    method: 'POST',
    data,
  });
};
